<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/q_datatable_information/q_datatable_information.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/q_datatable_information/q_datatable_information.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '数据字典',
                name: 'q_datatable_information/q_datatable_information',
                url: "/q_datatable_information/",
                sortName: "表名"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'表名',title:'表名',type:'string',link:true,width:180,require:true,align:'left',sort:true},
                       {field:'字段名',title:'字段名',type:'string',width:180,align:'left'},
                       {field:'数据类型',title:'数据类型',type:'string',width:180,align:'left'},
                       {field:'字段说明',title:'字段说明',type:'string ',width:220,require:true,align:'left'},
                       {field:'ID',title:'ID',type:'guid',width:110,hidden:true,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
